<?php
class links_bookmarklet
{
	var $mydirname;
	var $controller_name;
	var $Links;

	/** Constructor
	 *
	**/
	function links_bookmarklet($mydirname)
	{
		$this->mydirname = $mydirname;
		$this->controller_name = str_replace('links_', '', get_class($this));
		$this->Links = links_Base::getInstance($this->mydirname);
		$this->Links->setControllerName($this->controller_name);
		$this->Links->breadcrumbs();

		if ($this->Links->is_mobile) {
			$this->Links->linksRedirectHeader($this->Links->baseUrl(TRUE), 3, 'PC only');
		}
	}

	function index()
	{
		$template = $this->Links->getTemplatePrefix() . '_bookmarklet.html';
		$this->Links->view($template);
	}

}